package com.jiangyao.model.dto.backend;

import com.jiangyao.model.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 成员申请DTO
 *
 * @author: yangyongchuan
 * @create: 2020年08月16日 20:45
 */
@ApiModel("成员申请DTO")
@Data
public class OrgClassApplyDTO implements BaseDTO {

	private static final long serialVersionUID = 6337164756797602811L;
	/**
	 * 申请ID集合
	 */
	@ApiModelProperty(value = "申请ID集合")
	@NotNull(message = "申请ID不能为空", groups = {Edit.class})
	private List<Integer> applyIdList;

	/**
	 * 审核状态： 2同意  3拒绝
	 */
	@ApiModelProperty(value = "审核状态：2同意  3拒绝", example = "2")
	@NotNull(message = "审核状态不能为空", groups = {Edit.class})
	@Range(min = 2, max = 3, message = "审核状态不能正确", groups = {Edit.class})
	private Integer status;

	/**
	 * 审核备注
	 */
	@ApiModelProperty(value = "审核备注")
	private String remark;

}
